package guyubao.com.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import guyubao.com.entity.dto.JDCertificateDto;
import guyubao.com.entity.vo.response.JDCertificateVo;
import guyubao.com.utils.MybatisRedisCache;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
//@CacheNamespace(implementation = MybatisRedisCache.class,eviction = MybatisRedisCache.class)
public interface JDCertificateMapper extends BaseMapper<JDCertificateDto> {
    @Select("select count,state from JDCertificate where uid=#{uid}")
    JDCertificateVo getCountByUId(String uid);
}
